package com.xsw.common.constant;

/**
 * 缓存的key 常量
 *
 * @author ruoyi
 */
public class CacheConstants {
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "smart_washing:login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "smart_washing:captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "smart_washing:sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "smart_washing:sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "smart_washing:repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "smart_washing:rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "smart_washing:pwd_err_cnt:";

    /**
     * redis获取微信小程序授权码
     */
    public static final String MINI_ACCESS_TOKEN_CACHE_PREFIX = "smart_washing:mini:access:token";

    /**
     * redis获取公众号授权码
     */
    public static final String PUB_ACCOUNT_ACCESS_TOKEN_CACHE_PREFIX = "smart_washing:pub:account:access:token";
}
